<%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" Runat="Server">
    <table style="width: 100%; height: 100%">
        <tr>
            <td align="center" style="width: 100px">
    <asp:LoginView ID="LoginArea" runat="server">
        <LoggedInTemplate>
            <h4>
                <asp:LoginName ID="LoginName1" runat="server" FormatString="Welcome	{0}!" />
            </h4>
        </LoggedInTemplate>
        <AnonymousTemplate>
            <asp:Login ID="Login1" runat="server">
                <LayoutTemplate>
                    <div class="login">
                        <h4>
                            Login to Site</h4>
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" CssClass="label">User Name</asp:Label>
                        <asp:TextBox ID="UserName" runat="server" AccessKey="u" CssClass="textbox"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                            ErrorMessage="User Name is required." ToolTip="User Name&#9;is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" CssClass="label">Password</asp:Label>
                        <asp:TextBox ID="Password" runat="server" AccessKey="p" CssClass="textbox" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                            ToolTip="Password is&#9;required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                        <div align="center">
                            <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me&#9;next time" /></div>
                        <asp:ImageButton ID="LoginButton" runat="server" AlternateText="login" CommandName="Login" CssClass="button" SkinID="login" />
                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal></div>
                               
                               <p align="center"> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="register.aspx" Width="47px">Register</asp:HyperLink></p>
                </LayoutTemplate>
            </asp:Login>
            &nbsp;&nbsp;
        </AnonymousTemplate>
    </asp:LoginView>
            </td>
        </tr>
    </table>
</asp:Content>

